package DataStructures;

/*
 * Node with double pointer (previous and next) for double linked lists
 */
public class DNode <T>{
	
	T info;
	Node<T> prev;
	Node<T> next;
	
	public DNode(T e){
		
		info = e;
		prev = null;
		next = null;
	}
	
	public DNode(){
		
		info = null;
		prev = null;
		next = null;
	}
	
	public T getInfo(){
		
		return this.info;
	}
}
